<template>
    <div>
<a href="https://localhost:7093/api/Member/Execlon">导出</a>

<input type="file" name="" @change="excel" id="">
    </div>
</template>

<script setup lang="ts">
import axios from 'axios'

const excel=(a:any)=>{
var b=a.target.files[0]
var fd=new FormData()
fd.append("file",b)
axios.post('https://localhost:7093/api/Member/Excelin',fd).then(res=>{
   if(res.data>0){
    alert('成功')
   }
   else{
    alert('失败')
   }
})

}

</script>

<style scoped>

</style>